package cn.school.test;

import cn.school.dao.StudentMapper;
import cn.school.entity.Student;
import cn.school.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class StudentQuery1227 {
    public static void main(String[] args) {
        SqlSession s= MybatisUtil.get();
        StudentMapper mapper = s.getMapper(StudentMapper.class);
        Map<String,String> params=new HashMap<>();
        params.put("qq","15");
        params.put("telephone","18");
        params.put("sname","李");
        //params.put("wechat","2");
        List<Student> query = mapper.query(params);
        query.forEach(System.out::println);
        MybatisUtil.close(s);
    }
}
